import Vue from 'vue'
import App from './App.vue'

import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';

import store from './store'
import router from './router'

import 'core-js/stable';
import 'regenerator-runtime/runtime';

import Mixin from '@/mixins/index';


Vue.mixin(Mixin)
Vue.use(Element);
Vue.config.productionTip = false
// 暴露初始化方法到全局


window.AIApp = (el = '#app') => {
  new Vue({
    el: '#app',
    router,
    store,
    render: h => h(App)
  }).$mount(el)
}

// 开发模式直接挂载
if (process.env.NODE_ENV === 'development') {
  window.AIApp()
}
